<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Syk
  Date: 2021/12/21
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>index</title>
</head>
<body>
    <table border="1" cellpadding="10" cellspacing="0">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>密码</th>
            <th>年龄</th>
            <th>性别</th>
        </tr>
        <c:forEach var="user" items="${list}" varStatus="index">
            <tr>
                <td>${index.count}</td>
                <td>${user.name}</td>
                <td>${user.password}</td>
                <td>${user.age}</td>
                <td>${user.age}</td>
            </tr>
        </c:forEach>
    </table><br><br>
<form action="/page.do" method="post">
    <input type="text" placeholder="请输入每页数据条数" name="size">
    <input type="text" placeholder="请输入查询页数" name="pageNum">
    <input type="submit" value="查询">
</form>
</body>
</html>
